
using System;
using Core.Base;
using Core.Contracts.Enums;
using Core.Contracts.Interfaces;
using Core.Features;
using Core.Resources;
using Core.Extensions;

namespace Core.Items.Robots
{
    /// <summary>
    /// Laird robot class
    /// </summary>
    
    public sealed class Laird : RobotBase
    {
        /// <summary>
        /// Create a new instance of the <see cref="T:Core.Items.Robots.Laird"/> class.
        /// </summary>
        public Laird()
            : base(
            "Laird",
            Traduction.desc_laird,
            FactionsEnum.Industrial,
            RobotTechnologyLevel.Mk1,
            RobotSizesEnum.Light,
            new ISlot[]{ 
				new Slot(0, SlotGroupsEnum.Chassis, SlotTypesEnum.Industrial, SizesEnum.Small),
				new Slot(1, SlotGroupsEnum.Chassis, SlotTypesEnum.Industrial, SizesEnum.Small),
				new Slot(2, SlotGroupsEnum.Chassis, SlotTypesEnum.Turret|SlotTypesEnum.Missile|SlotTypesEnum.Misc|SlotTypesEnum.Industrial, SizesEnum.Small|SizesEnum.Medium),
				new Slot(SlotGroupsEnum.Head, SlotTypesEnum.Modules),
				new Slot(SlotGroupsEnum.Head, SlotTypesEnum.Modules),
				new Slot(SlotGroupsEnum.Legs, SlotTypesEnum.Modules),
				new Slot(SlotGroupsEnum.Legs, SlotTypesEnum.Modules), },
            new IFeature<object>[]{ 
				new AccumulatorCapacity<double>(300),
				new AccumulatorRechargeTime<double>(120),
				new CpuPerformance<double>(155),
				new ReactorPerformance<double>(180),
				new ArmorAmount<double>(700),
				new ChemicalResistance<double>(30),
				new KineticResistance<double>(45),
				new SeismicResistance<double>(45),
				new ThermalResistance<double>(45),
				new SurfaceHitSize<double>(4.00),
				new InterferenceEmission<double>(3.00),
				new InterferenceMinimum<double>(45.00),
				new InterferencePeak<double>(155.00),
				new InterferenceRadius<double>(100.00),
				new LockingRange<double>(200),
				new LockingTime<double>(12.50),
				new MaximumTargets<double>(2),
				new MissileGuidanceFailure<double>(0.1),
				new SensorStrength<double>(100),
				new SignalDetection<double>(80.00),
				new SignalMasking<double>(80.00),
				new ReloadingTime<double>(10),
				new CargoCapacity<double>(7.50),
				new RobotMass<double>(6680.00),
				new SlopeCapacity<double>(56),
				new TopSpeed<double>(52.20),
				new Volume<double>(16.00), },
            new IBonusModifier[]
                {
                    new BonusModifier<BasicRobotics>(FeatureTypesEnum.Module,FeaturesEnum.HarvesterCycleTime,-0.05){ Unit = UnitsEnum.Percentage, DisplayName = "Harvester cycle time" },
                    new BonusModifier<BasicRobotics>(FeatureTypesEnum.Module,FeaturesEnum.HarvestedAmount,0.05){ Unit = UnitsEnum.Percentage, DisplayName = "Harvested amount" },
                    new BonusModifier<BasicRobotics>(FeatureTypesEnum.Robot,FeaturesEnum.DemobilizerResistance,0.02){ Unit = UnitsEnum.Percentage, DisplayName = "Demobilizer resistance" },
                },
            new ICondition<IExtension>[]
                {
                    new ExtensionCondition<IndustrialRobotControl>(1),
                    new ExtensionCondition<BasicRobotics>(1),
                })
        {
        }
    }
}